#include "oled.h"

extern U8G2_SSD1306_128X64_NONAME_F_SW_I2C u8g2;

int xx = 40;
int yy = 10;

void drawcloudyBmp(int page){
    u8g2.firstPage();
    do {
        u8g2.drawXBMP(xx,yy, 48, 48, cloudy[page]);
     } while ( u8g2.nextPage() );
}

void drawsunnyBmp(int page){
    u8g2.firstPage();
    do {
        u8g2.drawXBMP(xx,yy, 48, 48, sun[page]);
     } while ( u8g2.nextPage() );
}

void drawrainyBmp(int page){
    u8g2.firstPage();
    do {
        u8g2.drawXBMP(xx,yy, 48, 48, rainy[page]);
     } while ( u8g2.nextPage() );
}

void drawsnowyBmp(int page){
    u8g2.firstPage();
    do {
        u8g2.drawXBMP(xx,yy, 48, 48, snowy[page]);
     } while ( u8g2.nextPage() );
}

void drawwindyBmp(int page){
    u8g2.firstPage();
    do {
        u8g2.drawXBMP(xx,yy, 48, 48, windy[page]);
     } while ( u8g2.nextPage() );
}

void drawrain_cloudyBmp(int page){
    u8g2.firstPage();
    do {
        u8g2.drawXBMP(xx,yy, 48, 48, rain_cloudy[page]);
     } while ( u8g2.nextPage() );
}

void drawheavyrainBmp(int page){
    u8g2.firstPage();
    do {
        u8g2.drawXBMP(xx,yy, 48, 48, heavy[page]);
     } while ( u8g2.nextPage() );
}

void drawhazeBmp(int page){
    u8g2.firstPage();
    do {
        u8g2.drawXBMP(xx,yy, 48, 48, haze[page]);
     } while ( u8g2.nextPage() );
}

void drawthundershowerBmp(int page){
    u8g2.firstPage();
    do {
        u8g2.drawXBMP(xx,yy, 48, 48, thundershower[page]);
     } while ( u8g2.nextPage() );
}

void drawnightBmp(int page){
    u8g2.firstPage();
    do {
        u8g2.drawXBMP(xx,yy, 48, 48, night[page]);
     } while ( u8g2.nextPage() );
}
